/*
 * $Id$
 */
package org.crazydays.wowarmory;


import java.io.InputStream;
import java.net.URI;

/**
 * IPage.
 */
public interface IPage
{
	/**
	 * Get page uri.
	 *
	 * @return Page URI
	 */
	public URI getPageUri();

	/**
	 * Set bytes.
	 *
	 * @param bytes Bytes
	 */
	public void setBytes(byte[] bytes);

	/**
	 * Get bytes.
	 *
	 * @return Bytes
	 * @throws WowArmoryExcpetion
	 */
	public byte[] getBytes()
		throws WowArmoryException;

	/**
	 * Get page data.
	 *
	 * @param data Data
	 * @throws WowArmoryException
	 */
	public <T extends IData> T getData(T data)
		throws WowArmoryException;
}
